<include file="Public:header" />
   		<div class="mainbox" style="width:800px;height:1300px;"><br/>
        	<h1>新增房间录入</h1>
            <br/><br/><br/>

        <form class="form-horizontal" action="{:U('Admin/Room/save_room')}" method="POST">

            <div class="form-group" style="height:40px;">
            <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>房间名称:</label>
            <div class="col-sm-9">
              <input type="text" class="form-control" id="inputEmail3" name="room_name" >
            </div>
            </div>
            
            <div class="form-group" style="height:40px;">
             <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>楼宇编号:</label>
            <div class="col-sm-9">
              <select name="building_id" >
                  <foreach name="building" item="v">
                      <option value="{$v['building_id']}">{$v.building_name}</option>
                  </foreach>

              </select>
            </div>

             <button type="submit" class="btn btn-info btn-lg" style="margin-left:50px;" onclick="window.location.href=''">
             	<span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span> &nbsp;&nbsp;保存记录&nbsp;&nbsp;&nbsp;
             </button>

             </form>
           
        
        
    	</div>
    </div>
</div> 

    		<!-- 2 加载jQuery库，同时加载该库必须在加载bootstrap.min.js之前  -->
			<script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
            <!-- 3 加载bootstrap核心 -->
            <script src="<?php echo JS_URL ;?>bootstrap.min.js"></script>
</body>
</html>
